import * as spritejs from 'spritejs'
const { Scene, Sprite, Polyline, Rect, Label } = spritejs

// 画出停车场
export const drawPark = function (layer) {
    const polyline1 = new Polyline({
        pos: [300, 200],
        points: [
            [0, 0],
            [0, 800],
        ],
        lineWidth: 5,
        strokeColor: '#333',
        // fillColor: '#fff',
    });
    // 0~200画一个虚线
    const polyline2 = new Polyline({
        pos: [300, 0],
        points: [
            [0, 0],
            [0, 200],
        ],
        lineWidth: 1,
        lineDash: [10, 10],
        strokeColor: '#eee',
        // fillColor: '#fff',
    });

    layer.append(polyline1, polyline2);
};
